package dao.impl;

import dao.WordCountDao;
import pojo.Wordcount;

import java.sql.SQLException;
import java.util.List;

public class WordCountDaoImpl extends BaseDao implements WordCountDao {
    @Override
    public List<Wordcount> getAll() throws SQLException {
        String sql = "select word,count from wordcount";
        return queryForList(Wordcount.class,sql);
    }
}
